package com.liao.content.api;

import com.liao.content.model.po.Banner;
import com.liao.content.service.BannerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 轮播图 前端控制器
 * </p>
 *
 * @author liao
 */
@Slf4j
@RestController
@RequestMapping("banner")
public class BannerController {

    @Autowired
    private BannerService  bannerService;


    @GetMapping("/list")
    public List<Banner> list(){
        return  bannerService.list();
    }


}
